﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Yala.Models" namespace="Yala.Models.Items">
  <class name="Item" table="Items">
    <id name="Id" column="ItemId" type ="System.Guid" />    
    <property name="Name" column="ItemName" type="string" not-null="true" />
    <property name="Description" column="Description" type="string" not-null="false" />
    <property name="CreatedDate" column="CreatedDate" type="System.DateTime" not-null="true" />
    <many-to-one name="Owner" class="Yala.Models.Users.User" column ="OwnerId"  not-null="true" />
  </class>
</hibernate-mapping>